package com.shujia.service.impl;

import com.shujia.dao.DeptDao;
import com.shujia.pojo.Dept;
import com.shujia.service.DeptService;
import com.shujia.service.ServiceDemo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    DeptDao deptDao;

    @Override
    public String getDept() {
        return deptDao.getDept();
    }

    @Override
    public List<Dept> getAllCusBaseInfo() {
        return deptDao.getAllCusBaseInfo();
    }

    @Override
    public Dept saveDeptInfo(Dept dept) {
        return deptDao.saveDeptInfo(dept);
    }

    @Override
    public Dept getDeptByNo(Integer deptNo) {
        return deptDao.getDeptByNo(deptNo);
    }


}
